<?php
// +----------------------------------------------------------------------
// | ZanPianCMS
// +----------------------------------------------------------------------
// | Copyright (c) 2013 http://www.zanpiancms.com All rights reserved.
// +----------------------------------------------------------------------
// | BBS:  <http://www.zanpiancms.cc>
// +----------------------------------------------------------------------
namespace app\common\validate;
class Member extends Base{
    protected $rule =   [
	    ['member_name', 'require|unique:member|alphaDash', '用户名必须填写|用户名已存在|用户名只能是字母、数字和下划线_及破折号-'],
		['member_email', 'require|unique:member|email', '邮箱必须|邮箱已存在|邮箱格式不正确'],
		['member_password', 'require', '必须输入密码'],
		['member_repassword', 'confirm:member_password', '确认密码和密码不同'],
    ];	
	protected $scene = array(
		'edit'     => 'member_name,member_email',
		'add'     =>  'member_name,member_email,member_password,member_repassword',
		'password' => 'member_password,member_repassword'
	);

}